
#import "PUMenuCollectionCell.h"

@implementation PUMenuCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupViews];
    }
    return self;
}

- (void)setupViews {
    self.selectView = [[UIView alloc]init];
    self.selectView.clipsToBounds = true;
    self.selectView.layer.cornerRadius = 25/2;
    [self addSubview:self.selectView];
    [self.selectView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset = 0;
    }];
    
    self.titleLabel = [[UILabel alloc]init];
    self.titleLabel.text = @"家常菜";
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    [self.selectView addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset = 12;
        make.right.offset = -12;
        make.centerY.offset = 0;
    }];
}

@end
